package com.xjtu.platform.common;

import java.io.File;

public class CurrentUser extends PageParam {

    public static final String SESSION_ATTR_NAME="CurrentUser";//session属性名字

    /**
     * 头像存储位置
     */
    public static final String AVATAR_DIR = "D:/touxiang";

    public static final String DEFAULT_PASSWORD = "111111";
    public static final String DEMO_DIR = "D:/platformPic/ques";

    private String userId;
    private String userName;
    private String avatar;//头像地址
    private String favor;

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    private Integer rank;

    public String getFavor() {
        return favor;
    }

    public void setFavor(String favor) {
        this.favor = favor;
    }

    public CurrentUser() {
    }

    public CurrentUser(String userId) {
        this.userId = userId;
    }

    public CurrentUser(String userId, String userName, String avatar) {
        this.userId = userId;
        this.userName = userName;
        this.avatar = avatar;
    }

    public CurrentUser(String userId, String userName, String avatar, String favor) {
        this.userId = userId;
        this.userName = userName;
        this.avatar = avatar;
        System.out.println("favor!!!!!!!!!!!!???");
        System.out.println(favor);
        this.favor = favor;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
